<?php

namespace Apps\Common\Models;

/**
 * 老板信息Model(B端表)
 * @author     chenxiaolin
 * @date        2016年1月19日
 * @version     2.0.0
 * @copyright   Copyright 2016 meelier.com
 */
class CosShop extends \PhalconPlus\Database\Model
{

	/**
	 *
	 * @var integer
	 */
	public $shop_id;

	/**
	 *
	 * @var string
	 */
	public $shop_name;

	/**
	 *
	 * @var string
	 */
	public $shop_uid;

	

	/**
	 *
	 * @var integer
	 */
	public $shop_pwd;

	/**
	 *
	 * @var string
	 */
	public $agent_id;

	/**
	 *
	 * @var integer
	 */
	public $charge_id;

	


	/**
	 *
	 * @var string
	 */
	public $shop_tel;
	
	public $expire_date;
	
	public $shop_note;
	
	public $shop_status;
	
	public $shop_date;

	/**
	 * Returns table name mapped in the model.
	 *
	 * @return string
	 */
	public function getSource()
	{
		return 'cos_shop';
	}

	/**
	 * Allows to query a set of records that match the specified conditions
	 *
	 * @param mixed $parameters
	 * @return BeautyParlor[]
	 */
	public static function find($parameters = null)
	{
		return parent::find($parameters);
	}

	/**
	 * Allows to query the first record that match the specified conditions
	 *
	 * @param mixed $parameters
	 * @return BeautyParlor
	 */
	public static function findFirst($parameters = null)
	{
		return parent::findFirst($parameters);
	}

	/**
	 * Independent Column Mapping.
	 * Keys are the real names in the table and the values their names in the application
	 *
	 * @return array
	 */
	public function columnMap()
	{
		return array(
				'shop_id' => 'shop_id',
				'shop_name' => 'shop_name',
				'shop_uid' => 'shop_uid',
				'shop_pwd' => 'shop_pwd',
				'agent_id' => 'agent_id',
				'charge_id' => 'charge_id',
				'shop_tel' => 'shop_tel',
				'expire_date' => 'expire_date',
				'shop_note'=>'shop_note',
				'shop_status'=>'shop_status',
				'shop_date'=>'shop_date'
		);
	}


}
